package core;

public class Component {                                     // szukseges az abstract factory mintahoz
	private Coordinate position = new Coordinate();
	private Coordinate size = new Coordinate(); 
	
	/**
	 * Beallitja a komponens poziciojat es meretet.
	 * @param position
	 * 			a pozicio koordinatai
	 * @param size
	 * 			a meret
	 */
	public Component(Coordinate position, Coordinate size) {
		this.position = position;
		this.size = size;
	}
	/**
	 * Visszateriti a poziciojat a komponensnek.
	 * @return
	 *		a pozicio
	 */
	public Coordinate getPosition() {
		return position;
	}
	/**
	 * Beallitja a poziciot.
	 * @param position
	 * 			a pozicio erteke
	 */
	public void setPosition(Coordinate position) {
		this.position = position;
	}
	/**
	 * Visszateriti a meretet a komponensnek.
	 * @return
	 * 			a meret
	 */
	public Coordinate getSize() {
		return size;
	}
	/**
	 * Beallitja a meretet.
	 * @param size
	 * 		a meret erteke
	 */
	public void setSize(Coordinate size) {
		this.size = size;
	}
}